<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>修改</title>
</head>
<body>

	<c:set var="Sex" value="${stu.stuSex }" />
	<c:set var="Pro" value="${stu.stuPro }" />
	
	<form action="/hello/update" method="post">
		学生ID：<input name="stuId" readonly="readonly" value="${id}"><br/>
		学生姓名:<input name="stuName" value="${stu.stuName }"/><br/>
		
		<c:choose>
			<c:when test="${Sex eq '男'}">
			学生性别:<input type="radio" name="stuSex" value="男" checked/>男
					<input type="radio" name="stuSex" value="女"/>女<br/>
			</c:when>
			<c:otherwise>
			学生性别:<input type="radio" name="stuSex" value="男"/>男
					<input type="radio" name="stuSex" value="女" checked/>女<br/>
			</c:otherwise>
		</c:choose>
	
		学生年龄:<input name="stuAge" value="${stu.stuAge }"/><br/>
		
		<c:choose>
			<c:when test="${Pro eq '软件工程' }">
			学生专业:<select name="stuPro">
						<option value="软件工程" selected>软件工程</option>
						<option value="计科">计科</option>
					</select><br/>
			</c:when>
			<c:when test="${Pro eq '计科' }">
			学生专业:<select name="stuPro">
						<option value="软件工程">软件工程</option>
						<option value="计科" selected>计科</option>
					</select><br/>
			</c:when>
		</c:choose>
				
				<input type="submit" value="修改信息"/>
	</form>
</body>
</html>